//
//  ShopCartTableViewCell.h
//  EasyToTesco
//
//  Created by mc on 16/2/17.
//  Copyright © 2016年 Jack. All rights reserved.
//

#import <UIKit/UIKit.h>
//商品信息model
#import "SCProductInfo.h"
<<<<<<< HEAD
@class ShopCartTableViewCell;
=======

>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee

@protocol ShopCartTableViewCellDelegate <NSObject>

@optional
<<<<<<< HEAD
-(void)btnClick:(ShopCartTableViewCell *)cell button:(UIButton *)sender;
=======
-(void)btnClick:(UITableViewCell *)cell button:(UIButton *)sender;
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee

@end

@interface ShopCartTableViewCell : UITableViewCell



//xib生成的属性列表
@property (weak, nonatomic) IBOutlet UIButton *selectedBtn;

@property (weak, nonatomic) IBOutlet UIImageView *ShopCartPic;
@property (weak, nonatomic) IBOutlet UILabel *ShopCartTitle;
@property (weak, nonatomic) IBOutlet UILabel *ShopCartmodel;
@property (weak, nonatomic) IBOutlet UILabel *ShopCartColor;
@property (weak, nonatomic) IBOutlet UILabel *ShopCartPrice;

@property (weak, nonatomic) IBOutlet UILabel *ShopCartCount;
<<<<<<< HEAD
@property (weak, nonatomic) IBOutlet UILabel *rateLabel;
=======
>>>>>>> dd1aac4040986135177ad18eb7781566439f59ee

//是否选中状态
@property (nonatomic, assign)BOOL selectState;

//代理
@property(nonatomic, weak)id<ShopCartTableViewCellDelegate>delegate;


/**
 *  创建自定义的SCCartTableCell对象，同时tableView可重用该cell
 *
 *  @param tableView 重用SCCartTableCell对象的tableView
 *
 *  @return SCCartTableCell对象
 */
+ (instancetype)cellWithTableView:(UITableView *)tableView;


//赋值
-(void)addTheValue:(SCProductInfo *)goodsModel;

@end
